import { RouterModule, Routes } from '@angular/router';
import { NgModule } from '@angular/core';
import { BasicListComponent } from './basic-list/basic-list.component';
import { ListComponent } from './list.component';
import { CardListComponent } from './card-list/card-list.component';
import { ModalBsComponent } from './modal-bs/modal-bs.component';
const routes: Routes = [
  {
    path: '',
    component: ListComponent,
    children: [
      { path: 'basic', component: BasicListComponent },
      { path: 'card', component: CardListComponent },
      { path: 'modalbs', component: ModalBsComponent },
      { path: '', redirectTo: 'basic', pathMatch: 'full' },
    ],
  },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class ListRoutingModule {}
